Skip to content

Upgrade Hamcrest to 3.0 #215

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 3 commits into from
Jun 1, 2025

Conversation

tomodachi94
Copy link
Contributor

If upstream changelogs are to be believed, there are no breaking changes except for:

  • The packaging method being changed1 from several JARs to one JAR.
  • An annotation, org.hamcrest.Factory, being removed (we don't use it, and upstream says that people should not have been using it externally)
  • The minimum version being upgraded to Java 82, which is already the case in Ant.

If upstream changelogs are to be believed, there are no
breaking changes except for:
* The packaging method being changed[1] from several JARs
  to one JAR.
* An annotation, `org.hamcrest.Factory`, being removed
  (we don't use it, and upstream says that people should
  not have been using it externally)
* The minimum version being upgraded to Java 8[2], 
  which is already the case in Ant.

[1]: https://github.com/hamcrest/JavaHamcrest/releases/tag/v2.1
[2]: https://github.com/hamcrest/JavaHamcrest/releases/tag/v3.0
@tomodachi94 tomodachi94 force-pushed the chore/hamcrest-3.0-upgrade branch from a6c1751 to 9905daf Compare December 8, 2024 19:13
@bodewig
Copy link
Member

bodewig commented May 31, 2025

Things seem to work with Hamcrest 3, thank you.

Actually the hamcrest jars are checked in into the repository (something that look strange for people today, I know :-), so you need to remove the 1.x jars and add the 3.0 one. And https://github.com/apache/ant/blob/master/lib/optional/LICENSE.hamcrest.txt should be adjusted as well.

@tomodachi94
Copy link
Contributor Author

Pushed both changes as new commits onto this PR's branch. Let me know if you prefer everything to be squashed into one commit.

@bodewig bodewig merged commit 7d5fed8 into apache:master Jun 1, 2025
@bodewig
Copy link
Member

bodewig commented Jun 1, 2025

thank you

Do you want to be credited inside our CONTRIBUTORS file - and if yes, by which name?

@tomodachi94 tomodachi94 deleted the chore/hamcrest-3.0-upgrade branch June 1, 2025 19:58
@tomodachi94
Copy link
Contributor Author

Sure, that would be cool ❤️ Tomodachi94 is fine.

I'm going to take a look at the issue tracker to see if there's anything there that I can help with.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants